package com.dibris.macco.applicationsreader;

import android.content.pm.ActivityInfo;
import android.content.pm.ConfigurationInfo;
import android.content.pm.FeatureInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PermissionInfo;
import android.content.pm.ProviderInfo;
import android.graphics.drawable.Drawable;

import android.content.pm.Signature;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class PInfo implements Serializable {
    String appname = "";
    String pname = "";
    String versionName = "";
    /*int versionCode = 0;*/
    Drawable icon;
/*    long firstInstallTime;
    long lastUpdateTime;*/
    ArrayList<PermissionInfo> permissionInfos=new ArrayList<PermissionInfo>();
    /*ArrayList<ConfigurationInfo> configurationInfos=new ArrayList<ConfigurationInfo>();
    ArrayList<ProviderInfo> providersInfos=new ArrayList<ProviderInfo>();
    ArrayList<ActivityInfo> receiversInfos=new ArrayList<ActivityInfo>();
    ArrayList<FeatureInfo> reqFeatures = new ArrayList<FeatureInfo>();
    ArrayList<String> requestedPermissions=new ArrayList<String>();
    ArrayList<Signature> signatures=new ArrayList<Signature>();
    String dataDirs;
    String publicSourceDirs;
    ArrayList<String> sharedLibraryFiles=new ArrayList<String>();
    String sourceDirs;*/

    public String prettyPrint() {
        return (appname + "\t" + pname + "\t" + versionName/* + "\t" + versionCode*/);
    }
};

